package hu.tortavar.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class ListaRenderHTML extends Composite {

	private static ListaRenderHTMLUiBinder uiBinder = GWT
			.create(ListaRenderHTMLUiBinder.class);

	interface ListaRenderHTMLUiBinder extends
			UiBinder<Widget, ListaRenderHTML> {
	}

	@UiField Element cim;
	@UiField Element leiras;
	@UiField Element ar;

	public ListaRenderHTML() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	public ListaRenderHTML(String cim, String leiras, String ar) {
		initWidget(uiBinder.createAndBindUi(this));
		this.cim.setInnerText(cim);
		this.leiras.setInnerHTML(leiras);
		this.ar.setInnerText(ar);
	}

	public void setListaRenderHTML(String cim, String leiras) {
		this.cim.setInnerText(cim);
		this.leiras.setInnerText(leiras);
	}
}
